/* Page *******************************************************************************************************************************************************/

html {
    width: 800px;
}

body.popup {
    font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
    font-size: 12px;
}

/* Search fields **********************************************************************************************************************************************/

input[type=search] {
    -webkit-appearance: textfield;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid #c3c3c3;
    outline: none;
    height: 22px;
    font-size: 12px;
    padding: 2px 4px 4px 2px;
    margin-top: 1px;
}

input[type=search]:hover {
    border: 1px solid #a6a6a6;
}

/* Datatables *************************************************************************************************************************************************/

.dataTables_wrapper .ui-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.dataTables_wrapper .ui-widget-header {
    padding: 6px;
    height: 24px;
}

.dataTables_wrapper .ui-widget-header div {
    /*border: 1px solid red;*/
    height: 24px;
}

.dataTables_wrapper .ui-widget-footer {
    padding: 0px;
}

.dataTables_wrapper .ui-widget-footer div {
    /*border: 1px solid red;*/
    height: 30px;
}

.dataTables_wrapper .ui-toolbar button {
    position: relative;
    top: 0px !important;
    padding: 0px;
    vertical-align: top;
    height: 24px;
    margin: 0px 3px;
}

#simple_selectors {
    margin: 0px 3px;
}

#advanced_selectors {
    margin: 0px 3px;
}

#editor_mode label .ui-button-text {
    padding: 3px 8px 4px 8px;
}

#editor_mode label:last-child {
    margin-right: 0px;
}

.dataTables_info {
    padding: 0px 8px;
    line-height: 30px;
    vertical-align: middle;
}

#selection_controls {
    padding-right: 2px;
    line-height: 30px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

#selection_controls [role='button'] {
    position: relative;
    top: 3px !important;
    margin: 1px;
}

td.details-control {
    cursor: pointer;
    background: url('images/details_gray.png') no-repeat center center;
}

td.details-control.active {
    background: url('images/details_open.png') no-repeat center center;
}

tr.open td.details-control {
    background: url('images/details_close.png') no-repeat center center;
}

td {
    text-overflow: ellipsis;
}

.dataTables_wrapper button .ui-button-text {
    position: relative;
    top: -2px;
    font-size: 13px;
}

#download {
    width: 100px;
}

input.ui-widget {
    -webkit-appearance: textfield;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: 1px solid #c3c3c3;
    outline: none;
    height: 16px;
    font-size: 12px;
    padding: 2px 4px 4px 2px;
    vertical-align: top;
}

input.ui-widget:hover {
    border: 1px solid #a6a6a6;
}

.ui-selectable-helper {
    position: absolute;
    z-index: 100;
    border: 1px solid rgba(176, 190, 217, 0.75);
    background-color: rgba(176, 190, 217, 0.25);
}

/* helper css for selectableScroll */
.ui-selectable-helper.no-top {
    border-top: 0;
}

.ui-selectable-helper.no-right {
    border-right: 0;
}

.ui-selectable-helper.no-bottom {
    border-bottom: 0;
}

.ui-selectable-helper.no-left {
    border-left: 0;
}

table.dataTable td,
table.dataTable th {
    white-space: nowrap;
    max-width: 12em;
    overflow: hidden;
}

#editor_console {
    height: 100px;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    display: none;
    overflow: hidden;
}

#editor_pane {
    width: 100%;
    height: 100%;
}

@-webkit-keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    position: relative;
    width: 28px !important;
    height: 28px !important;
    overflow: hidden !important;
    float: left;
    padding: 2px;
}

.loading .tracker {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px !important;
    height: 18px !important;
    border-radius: 18px !important;
    border: 4px solid #b0b0b0 !important;
}

.loading .maskedCircle {
    width: 18px !important;
    height: 18px !important;
    border-radius: 18px !important;
    border: 4px solid #808080 !important;
    z-index: 10;
}

.loading .mask {
    width: 13px !important;
    height: 13px !important;
    overflow: hidden !important;
}

.loading .spinner {
    width: 26px !important;
    height: 26px !important;
    -webkit-animation: spin 1s infinite linear !important;
}

#folder_dialog {
    padding-top: 2px;
    padding-right: 0px;
    padding-left: 0px;
    padding-bottom: 2px;
}

.folder_dialog_item {
    /*margin: 1px;*/
    /*border: 1px solid darkgray;*/
    padding: 4px;
    /*-moz-border-radius: 5px;*/
    /*-webkit-border-radius: 5px;*/
    /*border-radius: 5px;*/

    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.folder_dialog_item input {
    height: 20px;
    flex: 1;
}

.folder_dialog_item button:first-child {
    height: 28px;
    margin-right: 4px;
}

.folder_dialog_item button:last-child {
    height: 28px;
    margin-left: 4px;
}

button.ui-widget.green {
    background: rgba(64, 240, 32, 0.5);
    border-color: rgba(36, 155, 16, 0.5);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(64, 240, 32, 0.5)), color-stop(33%, rgba(32, 208, 16, 0.5)), color-stop(100%, rgba(0, 128, 0, 0.5)));
    background: -webkit-linear-gradient(top, rgba(64, 240, 32, 0.5) 0%, rgba(32, 208, 16, 0.5) 33%, rgba(0, 128, 0, 0.5) 100%);
}

button.ui-widget.green:hover {
    background: rgba(64, 240, 32, 0.75);
    border-color: rgba(36, 155, 16, 0.75);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(64, 240, 32, 0.75)), color-stop(33%, rgba(32, 208, 16, 0.75)), color-stop(100%, rgba(0, 128, 0, 0.75)));
    background: -webkit-linear-gradient(top, rgba(64, 240, 32, 0.75) 0%, rgba(32, 208, 16, 0.75) 33%, rgba(0, 128, 0, 0.75) 100%);
}

button.ui-widget.red {
    background: rgba(240, 64, 32, 0.5);
    border-color: rgba(155, 29, 16, 0.5);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(240, 64, 32, 0.5)), color-stop(33%, rgba(208, 32, 16, 0.5)), color-stop(100%, rgba(128, 0, 0, 0.5)));
    background: -webkit-linear-gradient(top, rgba(240, 64, 32, 0.5) 0%, rgba(208, 32, 16, 0.5) 33%, rgba(128, 0, 0, 0.5) 100%);
}

button.ui-widget.red:hover {
    background: rgba(240, 64, 32, 0.75);
    border-color: rgba(155, 29, 16, 0.75);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(240, 64, 32, 0.75)), color-stop(33%, rgba(208, 32, 16, 0.75)), color-stop(100%, rgba(128, 0, 0, 0.75)));
    background: -webkit-linear-gradient(top, rgba(240, 64, 32, 0.75) 0%, rgba(208, 32, 16, 0.75) 33%, rgba(128, 0, 0, 0.75) 100%);
}
